import { createStore } from 'redux'

const reducer = (state, active) => {
    if (active.type === 'CHANGE_LIST') {
        return  {
            ...state,
            list: active.list
        }
    }
    return state
}

const initalState = {
    list: []
}

export default createStore(reducer, initalState)